package com.retailshop.shopuser.mapper;

import com.retailshop.shopuser.entity.User;
import com.retailshop.shopuser.entity.UserBankInfo;
import com.retailshop.shopuser.entity.UserInfo;

import org.apache.ibatis.annotations.Mapper;


import java.util.List;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> selectUserByPhone(User user);

    /**
     * 获取用户资料
     * @param userNoId
     * @return
     */
    UserInfo getUserInfo(int userNoId);

    User selectUserByOpenId(String openId);

    User queryUserByPhone(String phone);

    UserBankInfo selectUserBankInfo(int id);

    List<User> getUserList();

}